home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15526 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news.mindspring.com!usenet
  2. From: rudd@mindspring.com (Justin Rudd)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help!
  5. Date: Sat, 06 Apr 1996 02:49:02 GMT
  6. Organization: MindSpring Enterprises
  7. Message-ID: <4k4m9p$20d8@mule1.mindspring.com>
  8. References: <4k4gev$lgo@dewey.csun.edu>
  9. Reply-To: rudd@mindspring.com
  10. NNTP-Posting-Host: rudd.mindspring.com
  11. X-Newsreader: Forte Free Agent v0.55
  12.  
  13. kc44097@csun.edu (chen) wrote:
  14.  
  15.  
  16. >  Can anyone help me out this problems below,please e-mail me,
  17. >my e-mail address is kc44097@huey.csun.edu
  18. >                     Thanks
  19. >-------------------------------------------------------------------------
  20.  
  21. > 3. Consider the following C program:
  22.  
  23. >       void fun (void)
  24. >        {
  25. >          int a,b,c; /*define 1 */
  26. >          ...
  27. >          while(...)
  28. >           {
  29. >             int b,c,d; /* define 2 */
  30. >             ...  <---------------------- 1
  31. >             while (...)
  32. >                {
  33. >                  int c,d,e; /* define 3 */
  34. >                  ... <----------------------- 2
  35. >                }
  36. >             ... <--------------- 3
  37. >           }
  38. >          ... <------------------- 4
  39. >        }
  40.  
  41. >     For each of the four marked points in this function,list each visia-
  42. >     ble variable,along with the nbumber of the defination statement that
  43. >     defines it.
  44.  
  45. This looks like a code segment out of the book "Concepts of
  46. Programming Languages" by Robert W. Sebesta.  Wow...it is...if any of
  47. you have this book and it is the 3rd Edition look on page 189 number
  48. 12.  Then look at this post...looks familiar huh??  In fact if the
  49. original poster of this message will read sections 4.8, 4.9, and 4.10
  50. they could figure this out.
  51.  
  52. And yes...I had this class last quarter.
  53.  
  54. And before you flame me with stuff like "Maybe they are confused."
  55. They could have at least re-worded the question :-)
  56.  
  57.  
  58. Justin Rudd
  59. rudd@mindspring.com
  60. =======================================
  61. It'll work...trust me ;-)
  62. =======================================
  63.  
  64.  
  65.